//package zo

import ZooManagementSystem2.ZooCollection.AnimalOfParkCollection;
import ZooManagementSystem2.ZooCollection.ParkInfo;
import ZooManagementSystem2.ZooCollection.ParkKeeperCollection;
import ZooManagementSystem2.ZooEntity.UserAnimal;
import ZooManagementSystem2.ZooEntity.UserKeeper;

public class Main {
    public static void main(String[] args) {

        AnimalOfParkCollection myAinmalSet =new AnimalOfParkCollection();
        ParkInfo myPark=new ParkInfo("水族馆");
        myAinmalSet.setAnimalOfPark(myPark);
        myAinmalSet.setAnimalClass("鸟纲");
        myAinmalSet.setAnimalFamily("企鹅科");
        myAinmalSet.setAnimalSpecies("帝企鹅种");

        UserAnimal animal1=new UserAnimal("麦哲伦");
        UserAnimal animal2=new UserAnimal("麦麦");
        UserAnimal animal3=new UserAnimal("伦伦");

        myAinmalSet.addUser(animal1);
        myAinmalSet.addUser(animal2);
        myAinmalSet.addUser(animal3);

        System.out.println("添加动物示例：");
        System.out.println(myAinmalSet.displayAllAnimals());
        System.out.println("-----------------------------------------------------");

        System.out.println("删除和修改示例：");
        myAinmalSet.deleteUser("麦哲伦");

        UserAnimal animal4=new UserAnimal("极光");
        myAinmalSet.updataUser(animal3,animal4);
        System.out.println(myAinmalSet.displayAllAnimals());
        System.out.println("-----------------------------------------------------");

        ParkKeeperCollection my_Park=new ParkKeeperCollection();
        my_Park.setParkBelongTo(new ParkInfo("鸟馆"));
        my_Park.setZooName("罗德岛动物园");

        my_Park.addUser(new UserKeeper("恬风"));
        my_Park.addUser(new UserKeeper("rainkaze"));

        System.out.println("添加饲养员示例：");
        System.out.println(my_Park.diplayAllKeepers());
    }
}


